/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hu.sqlexpr;

/**
 *
 * @author trekan
 */
public class Paging implements Visitable {

    public static class PagingBuilder {
        public static Paging offset(int offset) {
            return new Paging(offset);
        }
    }

    protected int offset;
    protected int limit;
    
    private Paging(int offset) {
        this.offset = offset;
    }
    
    public Paging limit(int limit) {
        this.limit = limit;
        return this;
    }

    public void accept(Visitor visitor) throws SyntaxException {
        visitor.visit(this);
    }        
}
